<template>
  <div class="right-container">
    <h3>Right 组件---{{count}}</h3>
  </div>
</template>

<script>
import bus from '@/utils/eventBus'
export default {
  data(){
    return{
      count:1
    }
  },
  created(){
  bus.$on('share',(count)=>{
    console.log(count,'count');
    this.count=count
  })
},
}
</script>

<style lang="less">
.right-container {
  padding: 0 20px 20px;
  background-color: lightskyblue;
  min-height: 250px;
  flex: 1;
}
</style>
